package org.rsbot.script.methods;

import I;
import org.rsbot.client.Client;

public class Settings extends MethodProvider
{
  public static final int SETTING_COMBAT_STYLE = 43;
  public static final int SETTING_TOGGLE_RUN = 173;
  public static final int SETTING_BANK_TOGGLE_REARRANGE_MODE = 304;
  public static final int SETTING_TOGGLE_ACCEPT_AID = 427;
  public static final int SETTING_MOUSE_BUTTONS = 170;
  public static final int SETTING_CHAT_EFFECTS = 171;
  public static final int SETTING_SPLIT_PRIVATE_CHAT = 287;
  public static final int SETTING_ADJUST_SCREEN_BRIGHTNESS = 166;
  public static final int SETTING_ADJUST_MUSIC_VOLUME = 168;
  public static final int SETTING_ADJUST_SOUND_EFFECT_VOLUME = 169;
  public static final int SETTING_ADJUST_AREA_SOUND_EFFECT_VOLUME = 872;
  public static final int SETTING_AUTO_RETALIATE = 172;
  public static final int SETTING_SWAP_QUEST_DIARY = 1002;
  public static final int SETTING_PRAYER_THICK_SKIN = 83;
  public static final int SETTING_TOGGLE_LOOP_MUSIC = 19;
  public static final int SETTING_BANK_TOGGLE_WITHDRAW_MODE = 115;
  public static final int SETTING_TYPE_SHOP = 118;
  public static final int SETTING_SPECIAL_ATTACK_ENABLED = 301;

  Settings(MethodContext paramMethodContext)
  {
    super(paramMethodContext);
  }

  public int[] getSettingArray()
  {
    org.rsbot.client.Settings localSettings = this.methods.client.getSettingArray();

    if ((localSettings == null) || (localSettings.getData() == null))
      return new int[0];
    return (int[])localSettings.getData().clone();
  }

  public int getSetting(int paramInt)
  {
    int[] arrayOfInt = getSettingArray();
    if (paramInt < arrayOfInt.length)
      return arrayOfInt[paramInt];
    return -1;
  }
}